home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacPeople 1998 #2
/
MACPEOPLE-1998-NO2.ISO
/
アップル関連
/
ARA PS アップデート
/
モデム用
/
Supra 336⁄V.34 rev.1
/
Supra 336_V.34 rev.1
next >
Wrap
Text File
|
1996-07-02
|
4KB
|
268 lines
! Diamond Multimedia Communications Division
!
! APPLE REMOTE ACCESS 1.0/2.0
! COMMUNICATION CONTROL LANGUAGE SCRIPT
! For Supra Brand Modems
! 2/95 JHE V.34 support
! 5/95 CNC V.34 annex A (33.6kbps) support
!
@ORIGINATE
@ANSWER
!
@LABEL 1
SETTRIES 0
HSRESET 0 1 0 0 0 0
DTRSET
!Wait for modem to powerup
PAUSE 30
@Label 3
SERRESET 57600, 0, 8, 1
! SETUP DEFAULT DIALING STRING FOR THE MODEM.
matchstr 1 7 "OK¥13¥10"
write "AT &F1B1S0=0M0E0¥¥N0N1%C0S46=136&C1&K3&D2W2S95=12S7=120¥13"
matchread 30
inctries
iftries 2 5
SBREAK
Jump 3
@Label 5
HSRESET 0 0 0 0 0 0
SERRESET 2400, 0, 8, 1
Write "AT¥13"
! SETUP DEFAULT DIALING STRING FOR THE MODEM.
MatchClr
matchstr 1 13 "OK¥13¥10"
write "AT &FS0=0M0E0&C1S7=120&P1¥13"
matchread 30
inctries
iftries 2 98
SBREAK
jump 5
@LABEL 7
! CHECK ERROR CORRECTION LINK REQUEST
! MNP10 = 2, LAP-M/MNP = 1
ifstr 4 9 "2"
ifstr 4 11 "1"
jump 13
@LABEL 9
! Configure MNP10 operation
! Used with ARA 2.0 only
write "AT¥¥N3)M1-K1¥13"
Jump 13
@Label 11
! Configure LAP-M/MNP operation
! Used with ARA 2.0 only
write "AT¥¥N3¥13"
@LABEL 13
! SETUP ACCORDING TO SPEAKER OPTION
ifstr 2 15 "0"
matchclr
matchstr 1 15 "OK¥13¥10"
write "ATM1¥13"
matchread 30
jump 98
@LABEL 15
! TURN ON AUTO ANSWER
iforiginate 17
write "ATS0=1¥13"
Jump 40
@LABEL 17
! 1 = blind, 2 =manual
ifstr 6 21 "1"
ifstr 6 19 "2"
Jump 23
@LABEL 19
note "Initiating Manual Connect..." 3
write "ATD¥13"
jump 40
@LABEL 21
note "Dialing without dialtone detection." 3
matchclr
matchstr 1 23 "OK¥13¥10"
write "ATX1¥13"
matchread 30
jump 98
@LABEL 23
USERHOOK 1
note "Dialing ^1." 3
write "ATD^3^1¥13"
@LABEL 40
!Wait for modem connection speed result code
matchstr 1 44 "CONNECT 2400¥13¥10"
matchstr 2 46 "CONNECT 9600¥13¥10"
matchstr 3 48 "CONNECT 14400¥13¥10"
matchstr 4 50 "CONNECT 16800¥13¥10"
matchstr 5 52 "CONNECT 19200¥13¥10"
matchstr 6 54 "CONNECT 21600¥13¥10"
matchstr 7 56 "CONNECT 24000¥13¥10"
matchstr 8 58 "CONNECT 26400¥13¥10"
matchstr 9 60 "CONNECT 28800¥13¥10"
matchstr 10 62 "CONNECT 31200¥13¥10"
matchstr 11 64 "CONNECT 33600¥13¥10"
matchstr 12 42 "RING¥13¥10"
matchstr 13 90 "NO CARRIER¥13¥10"
matchstr 14 92 "NO DIALTONE¥13¥10"
matchstr 15 94 "BUSY¥13¥10"
matchstr 16 96 "NO ANSWER¥13¥10"
matchread 1200
ifANSWER 40
jump 96
@LABEL 42
note "Answering Phone..." 2
USERHOOK 1
jump 40
@LABEL 44
note "Communicating at 2400 bps." 2
CommunicatingAt 2400
Jump 70
@LABEL 46
note "Communicating at 9600 bps." 2
CommunicatingAt 9600
Jump 70
@LABEL 48
note "Communicating at 14400 bps." 2
CommunicatingAt 14400
jump 70
@LABEL 50
note "Communicating at 16800 bps." 2
CommunicatingAt 16800
jump 70
@LABEL 52
note "Communicating at 19200 bps." 2
CommunicatingAt 19200
jump 70
@LABEL 54
note "Communicating at 21600 bps." 2
CommunicatingAt 21600
jump 70
@LABEL 56
note "Communicating at 24000 bps." 2
CommunicatingAt 24000
jump 70
@LABEL 58
note "Communicating at 26400 bps." 2
CommunicatingAt 26400
jump 70
@LABEL 60
note "Communicating at 28800 bps." 2
CommunicatingAt 28800
Jump 70
@LABEL 62
note "Communicating at 31200 bps." 2
CommunicatingAt 31200
Jump 70
@LABEL 64
note "Communicating at 33600 bps." 2
CommunicatingAt 33600
Jump 70
@LABEL 70
matchclr
matchstr 1 78 "PROTOCOL: NONE¥13¥10"
matchstr 2 72 "PROTOCOL: LAP-M¥13¥10"
matchstr 3 74 "PROTOCOL: ALT¥13¥10"
matchstr 4 76 "PROTOCOL: ALT - CELLULAR¥13¥10"
matchread 50
Jump 78
@LABEL 72
note "LAP-M reliable link established." 3
userhook 2
jump 78
@LABEL 74
note "MNP reliable link established." 3
userhook 2
jump 78
@LABEL 76
note "MNP10 reliable link established." 3
userhook 4
jump 78
@LABEL 78
exit 0
@HANGUP
@LABEL 80
settries 0
HSReset 0 0 0 0 0 0
DTRClear
@LABEL 82
Flush
SBREAK
pause 5
matchclr
matchstr 1 84 "NO CARRIER¥13¥10"
matchstr 2 84 "OK¥13¥10"
matchstr 3 84 "ERROR¥13¥10"
matchstr 4 84 "0¥13¥10"
write "ATH¥13"
matchread 30
inctries
iftries 3 98
write "+++"
jump 82
@LABEL 84
matchclr
matchstr 1 86 "OK¥13¥10"
write "AT&F¥13"
matchread 30
jump 98
@LABEL 86
userhook 0
exit 0
! General script errors
@LABEL 90
! NO CARRIER
exit -6021
@LABEL 92
! NO DIALTONE
exit -6020
@LABEL 94
! BUSY SIGNAL DETECTED
exit -6022
@LABEL 96
! NO ANSWER
exit -6023
@LABEL 98
! MODEM NOT RESPONDING
exit -6019
@LABEL 100
! VARSTRING ERROR
exit -6027